<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php

class IpadViewForm extends OptionViewForm
{

    public  $ipadLogoLandscape;
    public  $ipadLogoPortrait;
    public  $ipadLogoLandscapeUp;
    public  $ipadLogoPortraitUp;

    
    public function rules()
    {
        $valid = array(
        );

        if ($this->ipadLogoLandscapeUp){
            $ipad_logo_valid = array('ipadLogoLandscapeUp', 'file',
                'types'=>'jpg, gif, png',
                'maxSize'=>1024 * 1024 * 5,                 'tooLarge'=>'The file was larger than 50MB. Please upload a smaller file.',
            );
            array_push($valid, $ipad_logo_valid);
        }

        if ($this->ipadLogoPortraitUp){
            $ipad_logo_valid = array('ipadLogoPortraitUp', 'file',
                'types'=>'jpg, gif, png',
                'maxSize'=>1024 * 1024 * 5,                 'tooLarge'=>'The file was larger than 50MB. Please upload a smaller file.',
            );
            array_push($valid, $ipad_logo_valid);
        }

        return $valid;
    }


    
    public function attributeLabels()
    {         return  array(
            'ipadLogoLandscape'=>'Ipad的横屏图标',
            'ipadLogoPortrait'=>'Ipad的竖屏图标',
        );
    }
}